#include "USART.h"
#include "eeprom.h"
#include "w25q32.h"
#include "spi.h"

uint8_t mid=0;
uint16_t did=0;
int main()
{
    uint8_t buffer[10]={0};
    usart_init();
    printf("111222\r\n");
    w25q32_init();
    w25q32_id(&mid,&did);
    printf("%#x  %#x\n",mid,did);
    w25q32_erase(0,0);
    w25q32_writepage(0,0,0,"12345678",8);
    w25q32_read(0,0,0,0,buffer,8);
    printf("buffer=%s",buffer);
    while (1)
    {

    }
}
